emmc: support CMD23
authorHaojian Zhuang <[email protected]>
Tue, 2 Aug 2016 12:51:27 +0000 (20:51 +0800)
committerHaojian Zhuang <[email protected]>
Fri, 12 Aug 2016 03:41:00 +0000 (11:41 +0800)
commit445b1e704ec5734da9e96a44c9d24f50e3da25c0
treebd4b85e10530605090a3bd7f901e19f9468b5d40
parent3d99b17f60142ef96d39759132d4448e138b6c4e
emmc: support CMD23

Support CMD23. When CMD23 is used, CMD12 could be avoided.

Two scenarios:
1. CMD17 for single block, CMD18 + CMD12 for multiple blocks.
2. CMD23 + CMD18 for both single block and multiple blocks.

The emmc_init() should initialize whether CMD23 is supported
or not.

Signed-off-by: Haojian Zhuang <[email protected]>
drivers/emmc/emmc.c
include/drivers/emmc.h